package com.itcast.mallapplet.service.impl;

import com.itcast.applet.entity.Sort;
import com.itcast.mallapplet.mapper.SortMapper;
import com.itcast.mallapplet.service.SortService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Slf4j
public class SortServiceImpl implements SortService {

    @Autowired
    private SortMapper sortMapper;

    //查询全部分类
    public List<Sort> sortQueryAll() {
        List<Sort> sortList = sortMapper.sortQueryAll();
        return sortList;
    }
}
